package algorithm.hash;

public class UnsignedNumber {
    public static long getUnsignedNumber (int i){
        long a = ((long) -1) >>> 32;
        long k = i >= 0 ? i : (~i) ^ a;
        return k;
    }
    public static void main(String[] args) {
        System.out.println(getUnsignedNumber(Integer.MAX_VALUE + 1));
    }
}
